package com.ruoyi.ldzlsb.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备状态日志对象 sb_equipment_status_log
 * 
 * @author ruoyi
 */
public class SbEquipmentStatusLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long equipmentId;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String equipmentCode;
    
    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    /** 原状态 */
    @Excel(name = "原状态", readConverterExp = "0=空闲,1=在用,2=维修中,3=报废")
    private String oldStatus;

    /** 新状态 */
    @Excel(name = "新状态", readConverterExp = "0=空闲,1=在用,2=维修中,3=报废")
    private String newStatus;

    /** 变更原因 */
    @Excel(name = "变更原因")
    private String changeReason;

    /** 变更时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "变更时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date changeTime;

    /** 操作人员 */
    @Excel(name = "操作人员")
    private String operatorName;

    /** 关联单据ID */
    @Excel(name = "关联单据ID")
    private Long relatedOrderId;

    /** 关联单据类型（1:维修单 2:保养单 3:巡检单） */
    @Excel(name = "关联单据类型", readConverterExp = "1=维修单,2=保养单,3=巡检单")
    private String relatedOrderType;

    public Long getLogId() 
    {
        return logId;
    }

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentCode() 
    {
        return equipmentCode;
    }

    public void setEquipmentCode(String equipmentCode) 
    {
        this.equipmentCode = equipmentCode;
    }

    public String getEquipmentName() 
    {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) 
    {
        this.equipmentName = equipmentName;
    }

    public String getOldStatus() 
    {
        return oldStatus;
    }

    public void setOldStatus(String oldStatus) 
    {
        this.oldStatus = oldStatus;
    }

    public String getNewStatus() 
    {
        return newStatus;
    }

    public void setNewStatus(String newStatus) 
    {
        this.newStatus = newStatus;
    }

    public String getChangeReason() 
    {
        return changeReason;
    }

    public void setChangeReason(String changeReason) 
    {
        this.changeReason = changeReason;
    }

    public Date getChangeTime() 
    {
        return changeTime;
    }

    public void setChangeTime(Date changeTime) 
    {
        this.changeTime = changeTime;
    }

    public String getOperatorName() 
    {
        return operatorName;
    }

    public void setOperatorName(String operatorName) 
    {
        this.operatorName = operatorName;
    }

    public Long getRelatedOrderId() 
    {
        return relatedOrderId;
    }

    public void setRelatedOrderId(Long relatedOrderId) 
    {
        this.relatedOrderId = relatedOrderId;
    }

    public String getRelatedOrderType() 
    {
        return relatedOrderType;
    }

    public void setRelatedOrderType(String relatedOrderType) 
    {
        this.relatedOrderType = relatedOrderType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("equipmentId", getEquipmentId())
            .append("equipmentCode", getEquipmentCode())
            .append("equipmentName", getEquipmentName())
            .append("oldStatus", getOldStatus())
            .append("newStatus", getNewStatus())
            .append("changeReason", getChangeReason())
            .append("changeTime", getChangeTime())
            .append("operatorName", getOperatorName())
            .append("relatedOrderId", getRelatedOrderId())
            .append("relatedOrderType", getRelatedOrderType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
} 